Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delete the **bring back** tree node from the undo container remap #423

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

Leeeon233
Copy link
Member

@Leeeon233 Leeeon233 commented Aug 19, 2024

When performing undo and redo operations for a tree node deletion, a new TreeID is used due to the associated Data MapContainer.

However, concurrent operations might bring back the deleted node while keeping its original TreeID. This results in the node having two IDs in the undo manager: the original and the newly created one from the redo.

To address this, we need to remove the bring-back node from the remapping when importing.

@Leeeon233 Leeeon233 requested a review from zxch3n August 19, 2024 13:30
@Leeeon233 Leeeon233 merged commit 79e9f29 into main Aug 19, 2024
1 check passed
@Leeeon233 Leeeon233 deleted the loro-861-tree-undo-cause-cyclic-move branch August 19, 2024 13:52
@github-actions github-actions bot mentioned this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants